﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Automobile.service.BLL;
using Automobile.service.Model;
using System.Web.SessionState;

namespace Automobile.service.UI.Hander
{
    /// <summary>
    /// TrancuteJourna 的摘要说明
    /// </summary>
    public class TrancuteJourna : IHttpHandler,IRequiresSessionState
    {
        JournalBLL bll = new JournalBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.Write(bll.TruncateJournal(Convert.ToInt32(context.Session["empid"])));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}